
#include <gomoku/gui/DefaultGui.h>
#include <gomoku/core/IReferee.h>

namespace gomoku
{
    DefaultGui::DefaultGui()
        : _referee(0)
    {}

    DefaultGui::~DefaultGui()
    {}

    void DefaultGui::connectReferee(IReferee *referee)
    {
        _referee = referee;
    }

    // get elapsed time and restart clock.
    float DefaultGui::restartClock()
    {
    }
        
    void DefaultGui::pollEvent()
    {

    }

    void DefaultGui::update(float dt)
    {

    }

    // clear, draw all items, display.
    void DefaultGui::render()
    {

    }

    // STATE title screen : rendering menu for config a match.
    Match DefaultGui::matchConfig()
    {

    }

    // STATE game
    void DefaultGui::switchPlayer(Color color)
    {

    }

    // if a Move from think is check true by referee.
    void DefaultGui::updateGoban(Move const & move)
    {

    }

    // this fun is call if a player is a CPU.
    Move DefaultGui::think(Color color)
    {
        Move move;

        move.color = color;
        move.line = 0;
        move.column = 0;
        
        return move;
    }

}